﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoAddonBiz_FreightForwarder
{
    class B1Form_Sample : SAPBoAddon.B1Form
    {
        public B1Form_Sample()
        {
            this.frm_ItemEvent += new SAPBoAddon.IB1FormEvents.B1ItemEventEventHandler(B1Form_Sample_frm_ItemEvent);
        }

        void B1Form_Sample_frm_ItemEvent(SAPBoAddon.B1AddonBase.B1ItemEvent pVal, ref bool BubbleEvent)
        {
            if (pVal.BeforeAction)
            {

            }
            else
            {
                switch (pVal.FormTypeEx)
                {
                    case B1FormTypes.ado_FormTypes:

                        break;
                    default:
                        break;
                }
            }
        }

        protected override bool BeforeSaveCheckFormData()
        {
            return true;
        }

        protected override void FormEditModeChange(SAPBoAddon.frmItemEditMode frmEditMode)
        {

        }

        protected override void FormInfoSetting(SAPBoAddon.B1FormSetting FormSetting)
        {
            FormSetting.FormType = B1FormTypes.ado_Sample;
            FormSetting.FormFileName = "AVA_SampleForm.srf";
        }

        protected override void InitializeForm(SAPBoAddon.B1FormInitializePar InitPar)
        {
        }
    }
}
